package com.kele.service.impl;

import com.kele.dao.CollectionDao;
import com.kele.domain.Collections;
import com.kele.service.CollectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class CollectionServiceImpl implements CollectionService {
    @Autowired
    CollectionDao collectionDao;


    @Override
    public Collections findCollection(int blogid, int userid) {
        return collectionDao.findCollection(blogid,userid);
    }

    @Override
    public Integer deleteCollection(int collectionid) {
        return collectionDao.deleteCollection(collectionid);
    }

    @Override
    public Integer insertCollection(Collections collections) {
        return collectionDao.insertCollection(collections);
    }
}
